package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.DoseValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PsEmplastyeardoseMapper;
import com.ruoyi.system.domain.PsEmplastyeardose;
import com.ruoyi.system.service.IPsEmplastyeardoseService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
@Service
public class PsEmplastyeardoseServiceImpl implements IPsEmplastyeardoseService 
{
    @Autowired
    private PsEmplastyeardoseMapper psEmplastyeardoseMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param ID 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public PsEmplastyeardose selectPsEmplastyeardoseByID(Long ID)
    {
        return psEmplastyeardoseMapper.selectPsEmplastyeardoseByID(ID);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param psEmplastyeardose 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<PsEmplastyeardose> selectPsEmplastyeardoseList(PsEmplastyeardose psEmplastyeardose)
    {
        return psEmplastyeardoseMapper.selectPsEmplastyeardoseList(psEmplastyeardose);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param psEmplastyeardose 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertPsEmplastyeardose(PsEmplastyeardose psEmplastyeardose)
    {
        return psEmplastyeardoseMapper.insertPsEmplastyeardose(psEmplastyeardose);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param psEmplastyeardose 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updatePsEmplastyeardose(PsEmplastyeardose psEmplastyeardose)
    {
        return psEmplastyeardoseMapper.updatePsEmplastyeardose(psEmplastyeardose);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param IDs 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deletePsEmplastyeardoseByIDs(String IDs)
    {
        return psEmplastyeardoseMapper.deletePsEmplastyeardoseByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param ID 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deletePsEmplastyeardoseByID(Long ID)
    {
        return psEmplastyeardoseMapper.deletePsEmplastyeardoseByID(ID);
    }

    @Override
    public PsEmplastyeardose getByUserId(PsEmplastyeardose psEmplastyeardose) {
        return psEmplastyeardoseMapper.getByUserId(psEmplastyeardose);
    }

}
